package com.dailyblue.java.project.oa.commons.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dailyblue.java.project.oa.commons.bean.Position;
import com.dailyblue.java.project.oa.commons.mapper.PositionMapper;
import com.dailyblue.java.project.oa.commons.service.PositionService;
import com.dailyblue.java.project.oa.commons.util.JsonResult;
import com.dailyblue.java.project.oa.commons.util.ResultTool;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> implements PositionService {

    @Override
    public JsonResult<List<Position>> find() {
        return ResultTool.success(list());
    }
}
